CR1	EQU	$F008
CR2	EQU	$F009
CR3	EQU	$F008
L1	EQU	$F00A
L2	EQU	$F00C
L3	EQU	$F00E

	ORG	$2000

START:
	LDAA	#$01	; set bit 0 in register A
	STAA	CR2	; select CR1 -set bit 0 in CR2 
	STAA	CR1	; reset PTM -set bit 0 in CR1
	CLR	CR2	; access CR3

;	LDX	#$1F3F	; store $1F3F in register X
	LDX	#$013F	; store $1F3F in register X
	STX	L3	; init counter 3 -X -> latch 3

	LDAA	#$82	; #%1000 0010 in CR3
	STAA	CR3

	LDAA	#$01	; set bit 0 in register A
	STAA	CR2	; select CR1 -set bit 0 in CR2

	CLR	CR1	; start counting
;	WAI
	
	JMP	$F800	; return to monitor
	END
